#!/bin/bash

echo "start simulation..."
# 获取脚本自身的绝对路径
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "${SCRIPT_DIR}"
SIMULATION_PY="${SCRIPT_DIR}/agv_msg_simulation.py"

echo "find simulation script $SIMULATION_PY"

if [ ! -f "$SIMULATION_PY" ]; then
    echo "Error: $SIMULATION_PY not found!" >&2
    exit 1
fi

exec python3 "$SIMULATION_PY" 